import { z } from 'zod'

export const tableSchema = z.object({
  TABLE_NAME: z.string(),
  TABLE_COMMENT: z.string(),
  ENGINE: z.string().nullable(),
  TABLE_ROWS: z.number(),
  CREATE_TIME: z.string(),
  UPDATE_TIME: z.string().nullable(),
  TABLE_COLLATION: z.string().nullable(),
})

export type Table = z.infer<typeof tableSchema>
